{% extends "base_generic.html" %}
{% block content %}
        <h1>Teams</h1>
        <h2><a href="/admin/teams//new/" class="add">New team</a></h2>
        <table class="imgswithoutborders">
        {% for team in teams %}
          <tr>
            <td>{{ team.name }}</td>
            <td><a href="/{{ team.slug }}">Public</a></td>
            <td><a href="/admin/teams/{{ team.key }}/edit/">Edit</a></td>
            <td><a href="/admin/teams/{{ team.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ team.name }}?')){return true;}else{return false;}">Delete</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
